#include"ProcessBar.h"






#ifdef U
void Version1()
{
   
   char buffer[MAX_SIZE];
   memset(buffer,'\0',sizeof(buffer));
   //memset(buffer,MAX_SIZE,ICON);
   int count = 0;
   char str[4] = {'/','|','\\','\0'};  // \是一个转义字符，不能直接使用
   while(count <= 100)
   {
      printf("[%-100s]%d%% {%c}\r",buffer,count,str[count%sizeof(str)]);
      buffer[count++] = ICON;
      usleep(30000);
      fflush(stdout);
   }
   printf("\n");
     
}

#endif